package com.jnxg.smartcommunity.manager;

import com.geekbean.android.utils.GB_StringUtils;

public class UrlManager {
	//http://zhaijia.libokai.cn/apidoc/
	public static UrlManager instance;
	public static UrlManager getInstance() {
			if (instance == null) { 
				instance = new UrlManager();    
		}
		return instance;
	}
	public String baseUrl() {
		return "http://zhaijia.libokai.cn/";
	}
	public String imageUrl(String url) {
		if (GB_StringUtils.isBlank(url))
			return url;
		if (url.contains("http"))
			return url;
		if (!url.startsWith("/")) {
			url = "/" + url;
		}
		return baseUrl() + url;
	}

	public String memberLogin() {
		return baseUrl() + "mobile/member/login";
	}
	public String sendsms() {
		return baseUrl() + "mobile/member/sendsms";
	}
	public String register() {
		return baseUrl() + "mobile/member/register";
	}

//	public List<NameValuePair> getArr() {
//		List<NameValuePair> list = new ArrayList<NameValuePair>();
//		return list;
	}
